﻿


using NB.MGJ.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Model
{

    /// <summary>
    /// 创建活动
    /// </summary>
    public class Marketing_Activity
    {

        /// <summary>
        ///  编号
        /// </summary>
        [Property("Key")]
        public int Id { get; set; }

        /// <summary>
        ///  公司id
        /// </summary>
        public int? EnterpriseId { get; set; }

        [NotMapped]
        public string EnterpriseName { get; set; }

        /// <summary>
        ///  活动标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        ///  开始时间
        /// </summary>
        public System.DateTime? StartDate { get; set; }

        /// <summary>
        ///  结束时间
        /// </summary>
        public System.DateTime? EndDate { get; set; }

        /// <summary>
        ///  活动区域编号
        /// </summary>
        public string ActivityRegion { get; set; }

        /// <summary>
        ///  奖励对象1所有扫码客户0关注公众号
        /// </summary>
        public int? RewardObject { get; set; }

        /// <summary>
        ///  活动说明
        /// </summary>
        public string RuleExplain { get; set; }

        /// <summary>
        ///  每人中奖次数不能超过RuleDegree
        /// </summary>
        public int? RuleDegree { get; set; }

        /// <summary>
        /// 是否人数限制 0:不限制 1:限制 
        /// </summary>
        public int? IsParticipationLimit { get; set; }

        /// <summary>
        /// 参与人数 
        /// </summary>
        public int? ParticipationNum { get; set; }

        /// <summary>
        ///  批次信息
        /// </summary>
        public string Batch { get; set; }

        /// <summary>
        ///  备注说明
        /// </summary>
        public string Remark { get; set; }


        /// <summary>
        ///  活动网站图片路径
        /// </summary>
        public string ActivityWebUrl { get; set; }

        /// <summary>
        ///  二维码图片路径
        /// </summary>
        public string CodeUrlImg { get; set; }

        /// <summary>
        /// 1大转盘  2抢红包
        /// </summary>
        public int? ActivityType { get; set; }

        /// <summary>
        ///  模板id
        /// </summary>
        public int? TemplateID { get; set; }

        /// <summary>
        /// 活动详细ID
        /// </summary>
        public int? ActivityInfoID { get; set; }

        /// <summary>
        ///  启用1停用0
        /// </summary>
        public int? ViewFlag { get; set; }

        /// <summary>
        ///  删除状态0未删除1已删除
        /// </summary>
        public int? ViewDel { get; set; }
        //派奖方式
        public int? DeliveryId { get; set; }

        /// <summary>
        ///  
        /// </summary>
        public int? Sequence { get; set; }
        /// <summary>
        ///  
        /// </summary>
        public int? ChangeLoginID { get; set; }

        /// <summary>
        ///  
        /// </summary>
        public string ChangeLoginName { get; set; }
        /// <summary>
        ///  
        /// </summary>
        public System.DateTime? ChangeDate { get; set; }

        /// <summary>
        /// 预计最大金额
        /// </summary>

        public decimal PredictMaxMoney { get; set; }

        /// <summary>
        /// 预计最小金额
        /// </summary>

        public decimal PredictMinMoney { get; set; }

        [NotMapped]
        //关联的奖池数量  
        public int totalNums { get; set; }

        [NotMapped]
        //改活动扫码总数量
        public string scanCount { get; set; }
        //是否限制区域
        public int? IsLimitArea { get; set; }
        public string Privance { get; set; }
        public string City { get; set; }

        //改活动今日扫码数量
        [NotMapped]
        public string sumScanCount { get; set; }


    }

   
         public enum ActivityTypeEnum
         {
            /// <summary>
            /// 抢红包
            /// </summary>
            redData = 2     ,

            /// <summary>
            /// 九宫格
            /// </summary>
            sudoku=1       ,

             /// <summary>
             /// 砸金蛋
             /// </summary>
              goldEggs=3
         }

     
}











